home *** CD-ROM | disk | FTP | other *** search
/ ShareWare OnLine 2 / ShareWare OnLine Volume 2 (CMS Software)(1993).iso / educate / 7_dayc3.zip / TUTOR.ZIP / CT5.DAT < prev    next >
Text File  |  1993-01-08  |  31KB  |  760 lines

  1. CLS,1,25,7,0
  2. 18,0,15,0,"DAY 5:  HARD DISK OPERATING SYSTEM"
  3. MAIN,NULL
  4. CLS,1,25,0,1
  5. BOX,1,1,25,80,1,9,1
  6. 3,0,3,1,"███████  ████         █████  ████         ████   ████ "
  7. 4,0,3,1,"█  █  █  █   █        █      █   █        █   █  █   █"
  8. 5,0,3,1,"█  █  █  █   █        █      █   █        ████   █   █"
  9. 6,0,3,1,"█  █  █  █   █        █      █   █        █  █   █   █"
  10. 7,0,3,1,"█  █  █  ████         █████  ████         █   █  ████ "
  11. 9,8,7,1,"As we have discussed before, your hard disk drive is divided up into"
  12. 10,8,7,1,"~ROOMS~ called DIRECTORIES.  These directories may be set up in"
  13. 11,8,7,1,"just about any way you want them.  The above commands help you"
  14. 12,8,7,1,"arrange the directories in any manner you wish:"
  15. SPACE,1,7
  16. 14,8,2,1,"MD   Make directory.  Give the directory whatever name you wish"
  17. 15,8,2,1,"     (remembering that you can use a maximum of 8 characters)."
  18. SPACE,1,2
  19. 17,8,5,1,"CD   Change directory.  Leave the current directory and access"
  20. 18,8,5,1,"     another (exit this one and enter that one)."
  21. SPACE,1,5
  22. 20,8,7,1,"RD   Remove directory.  Erase a directory that is no longer needed"
  23. 21,8,7,1,"     (the directory may not contain any files; it must be empty)."
  24. SPACE,1,7
  25. CLS,1,25,0,2
  26. BOX,1,1,25,80,1,9,2
  27. 3,8,0,2,"When you first receive your hard disk system, it is usually"
  28. 4,8,0,2,"formatted and ready to use.  But this initial formatting provides"
  29. 5,8,0,2,"you with only ONE area of storage.  A hard disk can store a LOT"
  30. 6,8,0,2,"of information.  Which is better for most people, a house with one"
  31. 7,8,0,2,"GREAT BIG ROOM or a house with several smaller rooms, each room with"
  32. 8,8,0,2,"a specific purpose?"
  33. SPACE,2,0
  34. 10,8,1,2,"In the same manner, it is best to divide the hard disk into separate"
  35. 11,8,1,2,"DIRECTORIES, areas where similar types of data are kept.  For"
  36. 12,8,1,2,"example, let's consider dividing a hard disk into the following"
  37. 13,8,1,2,"subdirectories:"
  38. 15,0,11,2,"MAIN ─────┬── WORDPROC ──┬─ PERSONAL"
  39. 16,0,11,2,"          │              └─ BUSINESS"
  40. 17,0,11,2,"          ├── SPRDSHET              "
  41. 18,0,11,2,"          └── DATABASE ──┬─ CLIENTS "
  42. 19,0,11,2,"                         └─ SUPPLIES"
  43. SPACE,2,0
  44. CLS,1,25,0,3
  45. BOX,1,1,25,80,1,9,3
  46. 3,8,0,3,"Remember our \ character from an earlier lesson?  How do the prior"
  47. 4,8,0,3,"directory listings appear to the computer?  Let's see:"
  48. 5,0,11,3,"MAIN ─────┬── WORDPROC ──┬─ PERSONAL"
  49. 6,0,11,3,"          │              └─ BUSINESS"
  50. 7,0,11,3,"          ├── SPRDSHET              "
  51. 8,0,11,3,"          └── DATABASE ──┬─ CLIENTS "
  52. 9,0,11,3,"                         └─ SUPPLIES"
  53. SPACE,3,0
  54. 11,15,1,3,"C:\  or \"
  55. 11,40,15,3,"the MAIN directory"
  56. SPACE,3,1
  57. 12,15,1,3,"C:\WORDPROC"
  58. 12,40,15,3,"the WORDPROC directory"
  59. SPACE,3,1
  60. 13,15,1,3,"C:\WORDPROC\PERSONAL"
  61. 13,40,15,3,"the PERSONAL directory"
  62. SPACE,3,1
  63. 14,0,15,3,"THE OTHERS:"
  64. 15,15,1,3,"C:\SPRDSHET"
  65. 16,15,1,3,"C:\DATABASE"
  66. 17,15,1,3,"C:\DATABASE\CLIENTS"
  67. 18,15,1,3,"C:\DATABASE\SUPPLIES"
  68. SPACE,3,1
  69. 20,8,0,3,"These are the NAMES you would use to create, access, or remove any"
  70. 21,8,0,3,"of these directories.  The MAIN directory is always indicated by a"
  71. 22,8,0,3,"beginning \.  Let's see how this is done."
  72. SPACE,3,0
  73. CLS,1,25,0,4
  74. BOX,1,1,25,80,1,9,4
  75. 3,8,3,4,"The ENTIRE file name of the directory is called the PATH NAME."
  76. 3,60,15,4,"PATH NAME"
  77. 4,8,3,4,"This is because the computer must follow that PATH in order to find"
  78. 5,8,3,4,"the desired information."
  79. SPACE,4,3
  80. 7,8,3,4,"The MD command is used to Make Directories.  All directory commands"
  81. 8,8,3,4,"work on the same principle:  state the command, and the filename to"
  82. 9,8,3,4,"use.  With this in mind, can you figure out how to give the first"
  83. 10,8,3,4,"Make Directory command for the WORDPROC directory?"
  84. 11,0,11,4,"MAIN ─────┬── WORDPROC ──┬─ PERSONAL"
  85. 12,0,11,4,"(\)       │              └─ BUSINESS"
  86. 13,0,11,4,"          ├── SPRDSHET              "
  87. 14,0,11,4,"          └── DATABASE ──┬─ CLIENTS "
  88. 15,0,11,4,"                         └─ SUPPLIES"
  89. 17,8,0,4,"C>"
  90. INPUT,2,17,10,ANY
  91. IF,2,NOT,MD C:\WORDPROC,17,40,15,4,"TRY: MD C:\WORDPROC"
  92. IF,2,NOT,MD C:\WORDPROC,INPUT,2,17,10,EXACT,MD C:\WORDPROC
  93. 20,0,14,4,"VERY GOOD!"
  94. SPACE,4,7
  95. CLS,1,25,0,5
  96. BOX,1,1,25,80,1,9,5
  97. 3,23,11,5,"MAIN ─────┬── WORDPROC "
  98. 3,46,27,5,"──┬─ PERSONAL"
  99. 4,23,27,5,"          │              └─ BUSINESS"
  100. 5,23,27,5,"          ├── SPRDSHET              "
  101. 6,23,27,5,"          └── DATABASE "
  102. 6,46,27,5,"──┬─ CLIENTS "
  103. 7,23,27,5,"                         └─ SUPPLIES"
  104. 9,8,7,5,"Now let's try and Make the rest of the Directories.  Go ahead and"
  105. 10,8,7,5,"enter all of them:"
  106. 12,8,0,5,"C>"
  107. INPUT,2,12,10,ANY
  108. IF,2,NOT,MD C:\WORDPROC\PERSONAL,12,40,3,5,"TRY: MD C:\WORDPROC\PERSONAL"
  109. IF,2,NOT,MD C:\WORDPROC\PERSONAL,INPUT,2,12,10,EXACT,MD C:\WORDPROC\PERSONAL
  110. 3,46,11,5,"──┬─ PERSONAL"
  111. 13,8,0,5,"C>"
  112. INPUT,2,13,10,ANY
  113. IF,2,NOT,MD C:\WORDPROC\BUSINESS,13,40,3,5,"TRY: MD C:\WORDPROC\BUSINESS"
  114. IF,2,NOT,MD C:\WORDPROC\BUSINESS,INPUT,2,13,10,EXACT,MD C:\WORDPROC\BUSINESS
  115. 4,23,11,5,"          │              └─ BUSINESS"
  116. 14,8,0,5,"C>"
  117. INPUT,2,14,10,ANY
  118. IF,2,NOT,MD C:\SPRDSHET,14,40,3,5,"TRY: MD C:\SPRDSHET"
  119. IF,2,NOT,MD C:\SPRDSHET,INPUT,2,14,10,EXACT,MD C:\SPRDSHET
  120. 5,23,11,5,"          ├── SPRDSHET              "
  121. 15,8,0,5,"C>"
  122. INPUT,2,15,10,ANY
  123. IF,2,NOT,MD C:\DATABASE,15,40,3,5,"TRY: MD C:\DATABASE"
  124. IF,2,NOT,MD C:\DATABASE,INPUT,2,15,10,EXACT,MD C:\DATABASE
  125. 6,23,11,5,"          └── DATABASE "
  126. 16,8,0,5,"C>"
  127. INPUT,2,16,10,ANY
  128. IF,2,NOT,MD C:\DATABASE\CLIENTS,16,40,3,5,"TRY: MD C:\DATABASE\CLIENTS"
  129. IF,2,NOT,MD C:\DATABASE\CLIENTS,INPUT,2,16,10,EXACT,MD C:\DATABASE\CLIENTS
  130. 6,46,11,5,"──┬─ CLIENTS "
  131. 17,8,0,5,"C>"
  132. INPUT,2,17,10,ANY
  133. IF,2,NOT,MD C:\DATABASE\SUPPLIES,17,40,3,5,"TRY: MD C:\DATABASE\SUPPLIES"
  134. IF,2,NOT,MD C:\DATABASE\SUPPLIES,INPUT,2,17,10,EXACT,MD C:\DATABASE\SUPPLIES
  135. 7,23,11,5,"                         └─ SUPPLIES"
  136. 19,0,31,5,"EXCELLENT!"
  137. SPACE,5,0
  138. 19,0,7,5,"EXCELLENT!"
  139. 22,8,7,5,"Of course, the diagram at the top of the screen would not show up"
  140. 23,8,7,5,"on your computer.  We used it here for illustrative purposes."
  141. SPACE,5,7
  142. CLS,1,25,0,6
  143. BOX,1,1,25,80,1,9,6
  144. 3,8,7,6,"To see what is in a directory, you would use the DIR command.  All"
  145. 4,8,7,6,"you need to type is:    DIR dirname"
  146. 5,8,7,6,"  (dirname is the name of the directory; for example:  SPRDSHET)."
  147. SPACE,6,7
  148. 7,8,0,6,"This works differently than filenames.  If you use DIR on a normal"
  149. 8,8,0,6,"file, the computer will show you the filename, size in bytes, and the"
  150. 9,8,0,6,"date and time of last update.  If you use DIR on a DIRECTORY name,"
  151. 10,8,0,6,"you will get a listing of ALL FILES WITHIN THAT SUBDIRECTORY."
  152. SPACE,6,0
  153. 12,8,1,6,"Let's see an example.  We have a file called DOLLARS.BAS and a"
  154. 13,8,1,6,"subdirectory called TAXES.  Within the TAXES subdirectory are"
  155. 14,8,1,6,"several files that are used by our accounting staff.  Look at what"
  156. 15,8,1,6,"the DIR command will bring with each:"
  157. SPACE,6,1
  158. 16,8,7,6,"C>DIR DOLLARS.BAS                      C>DIR TAXES"
  159. 17,8,7,6,"DOLLARS  BAS   8021 2-21-88 3:14a      GENLED BAS  1796 3-11-84 5:15p"
  160. 18,8,7,6,"1 file(s)  9600000 bytes free          ACCREC.BAS  2417 3-12-84 6:27a"
  161. 19,8,7,6,"C>                                     PAYROL.BAS 17593 11-15-85 12:50p"
  162. 20,8,7,6,"                                       3 file(s)  9600000 bytes free"
  163. 21,8,7,6,"                                       C>"
  164. SPACE,7,6
  165. 22,8,0,6,"As you can see, the DIR command when used toward a subdirectory,"
  166. 23,8,0,6,"displays the names of all files within that subdirectory."
  167. SPACE,6,0
  168. CLS,1,25,0,1
  169. BOX,1,1,25,80,1,9,1
  170. 3,8,3,1,"Sometimes you may accidentally enter an incorrect directory name"
  171. 4,8,3,1,"when you use MD, or you may no longer need a directory.  RD stands"
  172. 5,8,3,1,"for REMOVE DIRECTORY; it works exactly like the MD command."
  173. SPACE,1,3
  174. 7,8,2,1,"Let's remove the SPRDSHET directory.  Can you figure out how to enter"
  175. 8,8,2,1,"the correct command? (it is right off the main directory)"
  176. 10,8,7,1,"C>"
  177. INPUT,2,10,10,ANY
  178. IF,2,NOT,RD C:\SPRDSHET,10,40,5,1,"TRY:  RD C:\SPRDSHET"
  179. IF,2,NOT,RD C:\SPRDSHET,INPUT,2,10,10,EXACT,RD C:\SPRDSHET
  180. 11,8,7,1,"C>"
  181. 13,8,3,1,"That is correct.  Like MD and many other DOS commands, you are not"
  182. 14,8,3,1,"informed that the task is performed.  The computer quietly does its"
  183. 15,8,3,1,"job, then returns to the DOS prompt and waits for the next command."
  184. SPACE,1,3
  185. 17,8,7,1,"As stated before, in order for RD to work, the subdirectory must be"
  186. 18,8,7,1,"completely empty of files.  If files or another subdirectory exist"
  187. 19,8,7,1,"within that subdirectory area, you will receive an error message:"
  188. 21,0,2,1,"Invalid path, no directory, or directory not empty."
  189. SPACE,1,2
  190. CLS,1,25,1,7
  191. BOX,1,1,25,80,1,9,7
  192. 3,11,8,7,"███████████     ███████████     ███████████     ███████████"
  193. 4,11,8,7,"███████████     ███████████     ███████████     ███████████"
  194. 5,11,8,7,"██dir 1 ███---->█  dir 2 ██---->██ dir 3  █---->██ dir 4███"
  195. 6,11,8,7,"██ main ███     █wordproc██     ██personal█     ██family███"
  196. 7,11,8,7,"███████████     ███████████     ███████████     ███████████"
  197. 12,8,1,7,"The above diagram is an illustration of the ~rooms~ in our hard"
  198. 13,8,1,7,"disk drive, the DIRECTORIES where information is stored.  These"
  199. 14,8,1,7,"directories are enlarged or reduced as information is added, deleted,"
  200. 15,8,1,7,"or transferred between directories."
  201. SPACE,7,1
  202. 17,8,5,7,"These directories have no particular size or place allotment and are"
  203. 18,8,5,7,"organized automatically by the Disk Operating System as you update"
  204. 19,8,5,7,"your files. Directories are not numbered; the above diagram is"
  205. 20,8,5,7,"merely for illustration."
  206. SPACE,7,5
  207. CLS,12,25,1,7
  208. BOX,1,1,25,80,1,9,7
  209. 3,11,8,7,"███████████     ███████████     ███████████     ███████████"
  210. 4,11,8,7,"███████████     ███████████     ███████████     ███████████"
  211. 5,11,8,7,"██dir 1 ███---->█  dir 2 ██---->██ dir 3  █---->██ dir 4███"
  212. 6,11,8,7,"██ main ███     █wordproc██     ██personal█     ██family███"
  213. 7,11,8,7,"███████████     ███████████     ███████████     ███████████"
  214. 12,8,1,7,"If you wish to move from one directory to another, you must first"
  215. 13,8,1,7,"pass through previous directories.  The manner in which you pass"
  216. 14,8,1,7,"through directories and subdirectories is called a PATH."
  217. 14,59,4,7,"PATH"
  218. SPACE,7,1
  219. 16,8,1,7,"CD stands for CHANGE DIRECTORY, and informs the computer to jump to"
  220. 17,8,1,7,"a new hard disk area.  As an example:  if we wished to access"
  221. 18,8,1,7,"directory number 4 as illustrated above, we would give the command:"
  222. 20,0,5,7,"CD C:\WORDPROC\PERSONAL\FAMILY" 
  223. SPACE,7,5
  224. 22,8,1,7,"This means to follow the PATH through directory 1 through 2 through"
  225. 23,8,1,7,"3 and into the final directory 4, where we remain."
  226. SPACE,7,1
  227. CLS,1,25,1,0
  228. BOX,1,1,25,80,1,9,0
  229. 3,23,2,0,"MAIN ─────┬── WORDPROC "
  230. 3,46,2,0,"──┬─ PERSONAL──────┬─ FAMILY"
  231. 4,23,2,0,"          │              └─ BUSINESS      └─ FRIENDS"
  232. 5,23,2,0,"          ├── SPRDSHET              "
  233. 6,23,2,0,"          └── DATABASE "
  234. 6,46,2,0,"──┬─ CLIENTS "
  235. 7,23,2,0,"                         └─ SUPPLIES"
  236. 9,8,4,0,"Keeping that example in mind, give the command to transfer to the"
  237. 10,8,4,0,"BUSINESS subdirectory:"
  238. 12,8,7,0,"C>"
  239. INPUT,2,12,10,ANY
  240. IF,2,NOT,CD C:\WORDPROC\BUSINESS,12,40,5,0,"TRY:  CD C:\WORDPROC\BUSINESS"
  241. IF,2,NOT,CD C:\WORDPROC\BUSINESS,INPUT,2,12,10,EXACT,CD C:\WORDPROC\BUSINESS
  242. 13,8,7,0,"C>"
  243. 15,8,4,0,"Very good.  As you can see, the CD command works just like the MD"
  244. 16,8,4,0,"and RD commands.  Just indicate the correct PATH and you'll wind"
  245. 17,8,4,0,"up where you want to go."
  246. SPACE,0,4
  247. 19,8,3,0,"But now that we're in this subdirectory, how do we know for SURE we"
  248. 20,8,3,0,"are there?  We could enter DIR and see if we recognize any files that"
  249. 21,8,3,0,"we know are supposed to be in that subdirectory, but there is a much"
  250. 22,8,3,0,"much easier way."
  251. SPACE,0,3
  252. CLS,1,25,0,1
  253. BOX,1,1,25,80,1,9,1
  254. 3,0,3,1,"                                             █           █        "
  255. 4,0,3,1,"█████  █████ █████ ███████ █████  █████    █████ █████ █████ █████"
  256. 5,0,3,1,"█    █ █   █ █   █ █  █  █ █    █   █      █ █   █   █ █ █   █    "
  257. 6,0,3,1,"█████  █████ █   █ █  █  █ █████    █      █████ █████ █████ █  ██"
  258. 7,0,3,1,"█      █  █  █   █ █  █  █ █        █        █ █ █       █ █ █   █"
  259. 8,0,3,1,"█      █   █ █████ █  █  █ █        █      █████ █     █████ █████"
  260. 9,0,3,1,"                                             █           █        "
  261. 11,8,2,1,"The PROMPT command tells your computer that you want to change the"
  262. 12,8,2,1,"C>  (or A> if you are using a floppy) to something else.  PROMPT"
  263. 13,8,2,1,"means CHANGE THE DOS PROMPT.  The $P$G means show the CURRENT"
  264. 14,8,2,1,"DIRECTORY ($P) along with the prompt carat >  ($G).  Go ahead and"
  265. 15,8,2,1,"enter the above command and watch what happens:"
  266. 17,8,7,1,"C>"
  267. INPUT,2,17,10,EXACT,PROMPT $P$G
  268. 18,8,7,1,"C:\WORDPROC\BUSINESS>"
  269. 20,8,3,1,"From now until we turn the computer off, DOS will continue to show"
  270. 21,8,3,1,"us our current directory location.  In this case, we have just"
  271. 22,8,3,1,"verified that we are in the BUSINESS subdirectory!"
  272. SPACE,1,3
  273. CLS,1,25,0,2
  274. BOX,1,1,25,80,1,13,2
  275. 3,8,0,2,"There are lots of different prompt PARAMETERS.  A PARAMENTER is an"
  276. 4,8,0,2,"added item to make a command work.  The PROMPT parameters are:"
  277. 6,15,1,2,"    INCLUDE IN THE PROMPT:"
  278. 7,15,1,2,"$$   a dollar sign"
  279. 8,15,1,2,"$T   the time"
  280. 9,15,1,2,"$D   the date"
  281. 10,15,1,2,"$P   the current directory"
  282. 11,15,1,2,"$V   the DOS version number"
  283. 12,15,1,2,"$N   the drive name"
  284. 13,15,1,2,"$G   the > character"
  285. 14,15,1,2,"$L   the < character"
  286. 15,15,1,2,"$b   the | character"
  287. 16,15,1,2,"$_   line feed (not often used)"
  288. 17,15,1,2,"$h   backspace (not often used)"
  289. 18,15,1,2,"$e   the ESC indicator (not often used)"
  290. SPACE,2,1
  291. 20,8,0,2,"If you used all of these characters (ignoring the last three) you"
  292. 21,8,0,2,"would come up with something like this:"
  293. 22,8,1,2,"$13:16:28.09Thu 2-25-1988C:\WORDPROC\BUSINESSMS DOS Version 3.1 C<>|"
  294. 23,0,0,2,"(most people just use PROMPT $P$G)"
  295. SPACE,2,0
  296. CLS,1,25,0,3
  297. BOX,1,1,25,80,1,13,3
  298. 3,0,5,3,"█████   ███   █████  █   █"
  299. 4,0,5,3,"█   █  █   █    █    █   █"
  300. 5,0,5,3,"█████  █   █    █    █████"
  301. 6,0,5,3,"█      █████    █    █   █"
  302. 7,0,5,3,"█      █   █    █    █   █"
  303. 9,8,0,3,"C:\WORDPROC\BUSINESS>"
  304. 11,8,1,3,"According to our prompt, we are in the business subdirectory.  We"
  305. 12,8,1,3,"would like to use a program in the SPRDSHET directory that is"
  306. 13,8,1,3,"named CALCULAT.  So we enter the command  CALCULAT"
  307. 15,8,0,3,"C:\WORDPROC\BUSINESS>"
  308. INPUT,2,15,29,EXACT,CALCULAT
  309. 16,8,0,3,"Bad command or file name"
  310. 17,8,0,3,"C:\WORDPROC\BUSINESS>"
  311. SPACE,3,0
  312. 19,8,1,3,"The computer is telling us the filename we entered is not in the"
  313. 20,8,1,3,"current subdirectory.  The reason is because the file is present in"
  314. 21,8,1,3,"the SPRDSHET subdirectory, and we are not at that location.  It's"
  315. 22,8,1,3,"kind of like trying to open the refrigerator when you are standing"
  316. 23,8,1,3,"in the bedroom... unless your arms are REAL long, it won't work."
  317. SPACE,3,1
  318. CLS,1,25,0,4
  319. BOX,1,1,25,80,1,13,4
  320. 3,8,3,4,"However, you could ask someone ELSE to bring you something from the"
  321. 4,8,3,4,"refrigerator.  You can do virtually the same thing with the computer."
  322. 5,8,3,4,"We have to tell the computer WHERE to find the item you want:"
  323. 7,8,0,4,"C:\WORDPROC\BUSINESS>"
  324. 7,29,15,4,"C:\SPRDSHET\CALCULAT"
  325. SPACE,4,1
  326. 9,8,3,4,"This command tells the computer to get the file from the SPRDSHET"
  327. 10,8,3,4,"subdirectory... the computer knows how to do that, so the program"
  328. 11,8,3,4,"is likely to go ahead and execute properly."
  329. SPACE,4,3
  330. 13,8,7,4,"We say LIKELY, because some programs are complex systems and"
  331. 14,8,7,4,"require that you execute them from their own private directory."
  332. 15,8,7,4,"The only way to operate such programs is to first of all use"
  333. 16,8,7,4,"the CD command to change to the required directory and then use"
  334. 17,8,7,4,"the program from there."
  335. SPACE,4,7
  336. CLS,1,25,0,5
  337. BOX,1,1,25,80,1,13,5
  338. 3,0,2,5,"█████   ███   █████  █   █"
  339. 4,0,2,5,"█   █  █   █    █    █   █"
  340. 5,0,2,5,"█████  █   █    █    █████"
  341. 6,0,2,5,"█      █████    █    █   █"
  342. 7,0,2,5,"█      █   █    █    █   █"
  343. 9,8,7,5,"You will undoubtedly have several programs that are often-used and"
  344. 10,8,7,5,"valuable (the FORMAT program for example) that you would like to be"
  345. 11,8,7,5,"able to call on from any subdirectory, without typing a lengthy"
  346. 12,8,7,5,"path name.  I bet you can figure out a command that will let us"
  347. 13,8,7,5,"do just that, can't you?"
  348. SPACE,5,7
  349. 15,8,0,5,"The PATH command provides a list of directories that the computer"
  350. 16,8,0,5,"is to check EVERY TIME it searches for a file.  The system will"
  351. 17,8,0,5,"check the CURRENT directory first, and if it does not find the file"
  352. 18,8,0,5,"there, will search all the other directories listed in the path"
  353. 19,8,0,5,"until it finds the required file."
  354. SPACE,5,0
  355. CLS,1,25,0,6
  356. BOX,1,1,25,80,1,13,6
  357. 3,8,0,6,"The PATH command is an easy one to use.  Just follow it with the"
  358. 4,8,0,6,"name of each directory you wish to search, separated by semicolons."
  359. 5,8,0,6,"Press SPACE to see an example of a PATH command that will allow us"
  360. 6,8,0,6,"to access ALL the subdirectories we have listed in our example."
  361. SPACE,6,0
  362. 8,8,7,6,"PATH \;\WORDPROC;\WORDPROC\PRIVATE;\WORDPROC\BUSINESS;\SPREDSHET;"
  363. 9,8,7,6,"\DATABASE;\DATABASE\CLIENTS;\DATABASE\SUPPLIES"
  364. SPACE,6,7
  365. 11,8,0,6,"This is nice in THEORY, but in reality the PATH command is limited"
  366. 12,8,0,6,"as to the amount it can access at one time.  So you couldn't"
  367. 13,8,0,6,"normally use a path like the one we have just shown you.  But for"
  368. 14,8,0,6,"most purposes, if your PATH command is no longer than one line"
  369. 15,8,0,6,"you will be able to use it.  This will allow you to access important"
  370. 16,8,0,6,"subdirectories like DOS, UTILTIES, and of course, GAMES (if you"
  371. 17,8,0,6,"happen to have those directories on your system)."
  372. SPACE,6,0
  373. 19,9,7,6,"   ████ "
  374. 20,9,7,6," ███████"
  375. 21,9,7,6,"██      "
  376. 22,9,7,6," ███████"
  377. 23,9,7,6,"   ████ "
  378. 19,9,7,6,"        "
  379. 20,9,7,6,"    ███████"
  380. 21,9,7,6,"   ████████"
  381. 22,9,7,6,"    ███████"
  382. 23,9,7,6,"           "
  383. 19,12,7,6,"      ████ "
  384. 20,12,7,6,"    ███████"
  385. 21,12,7,6,"   ██      "
  386. 22,12,7,6,"    ███████"
  387. 23,12,7,6,"      ████ "
  388. 19,12,7,6,"        "
  389. 20,12,7,6,"    ███████"
  390. 21,12,7,6,"   ████████"
  391. 22,12,7,6,"    ███████"
  392. 23,12,7,6,"           "
  393. 19,15,7,6,"      ████ "
  394. 20,15,7,6,"    ███████"
  395. 21,15,7,6,"   ██      "
  396. 22,15,7,6,"    ███████"
  397. 23,15,7,6,"      ████ "
  398. 19,15,7,6,"        "
  399. 20,15,7,6,"    ███████"
  400. 21,15,7,6,"   ████████"
  401. 22,15,7,6,"    ███████"
  402. 23,15,7,6,"           "
  403. 19,18,7,6,"      ████ "
  404. 20,18,7,6,"    ███████"
  405. 21,18,7,6,"   ██      "
  406. 22,18,7,6,"    ███████"
  407. 23,18,7,6,"      ████ "
  408. 19,18,7,6,"        "
  409. 20,18,7,6,"    ███████"
  410. 21,18,7,6,"   ████████"
  411. 22,18,7,6,"    ███████"
  412. 23,18,7,6,"           "
  413. 19,21,7,6,"      ████ "
  414. 20,21,7,6,"    ███████"
  415. 21,21,7,6,"   ██      "
  416. 22,21,7,6,"    ███████"
  417. 23,21,7,6,"      ████ "
  418. 19,21,7,6,"        "
  419. 20,21,7,6,"    ███████"
  420. 21,21,7,6,"   ████████"
  421. 22,21,7,6,"    ███████"
  422. 23,21,7,6,"           "
  423. 19,24,7,6,"      ████ "
  424. 20,24,7,6,"    ███████"
  425. 21,24,7,6,"   ██      "
  426. 22,24,7,6,"    ███████"
  427. 23,24,7,6,"      ████ "
  428. 19,24,7,6,"        "
  429. 20,24,7,6,"    ███████"
  430. 21,24,7,6,"   ████████"
  431. 22,24,7,6,"    ███████"
  432. 23,24,7,6,"           "
  433. 19,27,7,6,"      ████ "
  434. 20,27,7,6,"    ███████"
  435. 21,27,7,6,"   ██      "
  436. 22,27,7,6,"    ███████"
  437. 23,27,7,6,"      ████ "
  438. 19,27,7,6,"        "
  439. 20,27,7,6,"    ███████"
  440. 21,27,7,6,"   ████████"
  441. 22,27,7,6,"    ███████"
  442. 23,27,7,6,"           "
  443. 19,30,7,6,"      ████ "
  444. 20,30,7,6,"    ███████"
  445. 21,30,7,6,"   ██      "
  446. 22,30,7,6,"    ███████"
  447. 23,30,7,6,"      ████ "
  448. 19,30,7,6,"        "
  449. 20,30,7,6,"    ███████"
  450. 21,30,7,6,"   ████████"
  451. 22,30,7,6,"    ███████"
  452. 23,30,7,6,"           "
  453. 19,33,7,6,"      ████ "
  454. 20,33,7,6,"    ███████"
  455. 21,33,7,6,"   ██      "
  456. 22,33,7,6,"    ███████"
  457. 23,33,7,6,"      ████ "
  458. 19,33,7,6,"        "
  459. 20,33,7,6,"    ███████"
  460. 21,33,7,6,"   ████████"
  461. 22,33,7,6,"    ███████"
  462. 23,33,7,6,"           "
  463. 19,36,7,6,"      ████ "
  464. 20,36,7,6,"    ███████"
  465. 21,36,7,6,"   ██      "
  466. 22,36,7,6,"    ███████"
  467. 23,36,7,6,"      ████ "
  468. 19,36,7,6,"        "
  469. 20,36,7,6,"    ███████"
  470. 21,36,7,6,"   ████████"
  471. 22,36,7,6,"    ███████"
  472. 23,36,7,6,"           "
  473. 19,39,7,6,"      ████ "
  474. 20,39,7,6,"    ███████"
  475. 21,39,7,6,"   ██      "
  476. 22,39,7,6,"    ███████"
  477. 23,39,7,6,"      ████ "
  478. 19,39,7,6,"        "
  479. 20,39,7,6,"    ███████"
  480. 21,39,7,6,"   ████████"
  481. 22,39,7,6,"    ███████"
  482. 23,39,7,6,"           "
  483. 19,42,7,6,"      ████ "
  484. 20,42,7,6,"    ███████"
  485. 21,42,7,6,"   ██      "
  486. 22,42,7,6,"    ███████"
  487. 23,42,7,6,"      ████ "
  488. 19,42,7,6,"        "
  489. 20,42,7,6,"    ███████"
  490. 21,42,7,6,"   ████████"
  491. 22,42,7,6,"    ███████"
  492. 23,42,7,6,"           "
  493. 19,45,7,6,"      ████ "
  494. 20,45,7,6,"    ███████"
  495. 21,45,7,6,"   ██      "
  496. 22,45,7,6,"    ███████"
  497. 23,45,7,6,"      ████ "
  498. 19,45,7,6,"        "
  499. 20,45,7,6,"    ███████"
  500. 21,45,7,6,"   ████████"
  501. 22,45,7,6,"    ███████"
  502. 23,45,7,6,"           "
  503. 19,48,7,6,"      ████ "
  504. 20,48,7,6,"    ███████"
  505. 21,48,7,6,"   ██      "
  506. 22,48,7,6,"    ███████"
  507. 23,48,7,6,"      ████ "
  508. 19,48,7,6,"        "
  509. 20,48,7,6,"    ███████"
  510. 21,48,7,6,"   ████████"
  511. 22,48,7,6,"    ███████"
  512. 23,48,7,6,"           "
  513. 19,51,7,6,"      ████ "
  514. 20,51,7,6,"    ███████"
  515. 21,51,7,6,"   ██      "
  516. 22,51,7,6,"    ███████"
  517. 23,51,7,6,"      ████ "
  518. 19,51,7,6,"        "
  519. 20,51,7,6,"    ███████"
  520. 21,51,7,6,"   ████████"
  521. 22,51,7,6,"    ███████"
  522. 23,51,7,6,"           "
  523. 19,54,7,6,"      ████ "
  524. 20,54,7,6,"    ███████"
  525. 21,54,7,6,"   ██      "
  526. 22,54,7,6,"    ███████"
  527. 23,54,7,6,"      ████ "
  528. 19,54,7,6,"        "
  529. 20,54,7,6,"    ███████"
  530. 21,54,7,6,"   ████████"
  531. 22,54,7,6,"    ███████"
  532. 23,54,7,6,"           "
  533. 19,57,7,6,"      ████ "
  534. 20,57,7,6,"    ███████"
  535. 21,57,7,6,"   ██      "
  536. 22,57,7,6,"    ███████"
  537. 23,57,7,6,"      ████ "
  538. 19,57,7,6,"           "
  539. 20,57,7,6,"    ███████"
  540. 21,57,7,6,"   ████████"
  541. 22,57,7,6,"    ███████"
  542. 23,57,7,6,"           "
  543. 19,60,7,6,"      ████ "
  544. 20,60,7,6,"    ███████"
  545. 21,60,7,6,"   ██      "
  546. 22,60,7,6,"    ███████"
  547. 23,60,7,6,"      ████ "
  548. 19,60,7,6,"           "
  549. 20,60,7,6,"    ███████"
  550. 21,60,7,6,"   ████████"
  551. 22,60,7,6,"    ███████"
  552. 23,60,7,6,"           "
  553. 19,63,7,6,"      ████ "
  554. 20,63,7,6,"    ███████"
  555. 21,63,7,6,"   ██      "
  556. 22,63,7,6,"    ███████"
  557. 23,63,7,6,"      ████ "
  558. 19,63,7,6,"           "
  559. 20,63,7,6,"    ███████"
  560. 21,63,7,6,"   ████████"
  561. 22,63,7,6,"    ███████"
  562. 23,63,7,6,"           "
  563. 19,66,7,6,"      ████ "
  564. 20,66,7,6,"    ███████"
  565. 21,66,7,6,"   ██      "
  566. 22,66,7,6,"    ███████"
  567. 23,66,7,6,"      ████ "
  568. 19,66,7,6,"           "
  569. 20,66,7,6,"    ███████"
  570. 21,66,7,6,"   ████████"
  571. 22,66,7,6,"    ███████"
  572. 23,66,7,6,"           "
  573. 19,69,7,6,"      ████ "
  574. 20,69,7,6,"    ███████"
  575. 21,69,7,6,"   ██      "
  576. 22,69,7,6,"    ███████"
  577. 23,69,7,6,"      ████ "
  578. 19,69,7,6,"           "
  579. 20,69,7,6,"    ███████"
  580. 21,69,7,6,"   ████████"
  581. 22,69,7,6,"    ███████"
  582. 23,69,7,6,"           "
  583. 19,69,7,6,"           "
  584. 20,69,7,6,"           "
  585. 21,69,7,6,"           "
  586. 22,69,7,6,"           "
  587. 23,69,7,6,"           "
  588. SPACE,6,7
  589. CLS,1,25,1,7
  590. 3,0,4,7,"█   █  █████  █████          █   █   ███   █    "
  591. 4,0,4,7,"█   █  █      █   █          █   █  █   █  █    "
  592. 5,0,4,7,"█   █  ████   █████          █   █  █   █  █    "
  593. 6,0,4,7," █ █   █      █  █            █ █   █   █  █    "
  594. 7,0,4,7,"  █    █████  █   █            █     ███   █████"
  595. 9,8,1,7,"Sometimes you may be working on an unfamiliar computer (new office"
  596. 10,8,1,7,"location or at a friend's house).  It would be nice to know what"
  597. 11,8,1,7,"VERSION NUMBER of DOS is being used, and the VOLUME NAME of the"
  598. 12,8,1,7,"hard disk or floppy you will be using.  The above two commands,"
  599. 13,8,1,7,"just as shown, will each give the required information.  Go ahead"
  600. 14,8,1,7,"and try them:"
  601. 16,1,5,7,"C>"
  602. INPUT,2,16,3,EXACT,VER
  603. SHELL,VER
  604. 18,1,5,7,"C>"
  605. INPUT,2,18,3,EXACT,VOL
  606. SHELL,VOL
  607. 22,0,4,7,"VERY GOOD!"
  608. SPACE,7,4
  609. CLS,1,25,4,0
  610. BOX,1,1,25,80,1,13,0
  611. 3,0,4,0,"█████  █████  █████  █████"
  612. 4,0,4,0,"  █    █   █  █      █    "
  613. 5,0,4,0,"  █    █████  ████   ████ "
  614. 6,0,4,0,"  █    █  █   █      █    "
  615. 7,0,4,0,"  █    █   █  █████  █████"
  616. 9,8,3,0,"The TREE command allows you to examine the formation of your hard"
  617. 10,8,3,0,"disk by subdirectories and files.  There are two forms for this"
  618. 11,8,3,0,"command:"
  619. SPACE,0,3
  620. 13,8,5,0,"TREE  will list your hard disk structure by DIRECTORIES ONLY."
  621. SPACE,0,5
  622. 15,8,6,0,"TREE/F will include FILES as well as DIRECTORIES."
  623. SPACE,0,6
  624. CLS,1,25,4,1
  625. BOX,1,1,25,80,1,13,1
  626. 3,8,7,1,"Go ahead and try the TREE command.  TREE is an EXTERNAL command."
  627. 4,8,7,1,"That means it is not currently in memory... it must be loaded from"
  628. 5,8,7,1,"disk.  Since you may not have that program readily available (for"
  629. 6,8,7,1,"instance, if you are using a floppy system) we will use an imitation"
  630. 7,8,7,1,"TREE command."
  631. 9,8,3,1,"C>"
  632. INPUT,2,9,10,EXACT,TREE
  633. 10,8,3,1,"DIRECTORY PATH LISTING FOR VOLUME COMPTUTOR"
  634. 11,8,3,1,"Path: \WORDPROC"
  635. 12,8,3,1,"Sub-directories:  PERSONAL"
  636. 13,8,3,1,"                  BUSINESS"
  637. 14,8,3,1,"Path: \WORDPROC\PERSONAL"
  638. 15,8,3,1,"Sub-directories:  None"
  639. 16,8,3,1,"Path: \WORDPROC\BUSINESS"
  640. 17,8,3,1,"Sub-directories:  None"
  641. 18,8,3,1,"Path: \SPRDSHET"
  642. 19,8,3,1,"Sub-directories:  None"
  643. 20,8,3,1,"Path: \DATABASE"
  644. 21,8,3,1,"Sub-directories:  CLIENTS"
  645. 22,8,3,1,"                  SUPPLIES"
  646. SPACE,1,3
  647. CLS,1,25,4,0
  648. BOX,1,1,25,80,1,13,0
  649. 3,8,4,0,"Now try it with the /F option (TREE/F) and look at the difference:"
  650. 4,8,7,0,"C>"
  651. INPUT,2,4,10,EXACT,TREE/F
  652. 5,8,7,0,"DIRECTORY PATH LISTING FOR VOLUME COMPTUTOR"
  653. 6,8,7,0,"Files:             None"
  654. 7,8,7,0,"Path:  \WORDPROC"
  655. 8,8,7,0,"Sub-directories:   PERSONAL"
  656. 9,8,7,0,"                   BUSINESS"
  657. 10,8,7,0,"Files:             WRITER.COM"
  658. 11,8,7,0,"Files:             PRINTER.EXE"
  659. 12,8,7,0,"Path:  \WORDPROC\PERSONAL"
  660. 12,40,4,0,"We left out the DATABASE directory"
  661. 13,40,4,0,"in order to conserve time and space."
  662. 13,8,7,0,"Sub-directories:   None"
  663. 14,8,7,0,"Files:             LETTER1.DOC"
  664. 15,8,7,0,"Path:  \WORDPROC\BUSINESS"
  665. 16,8,7,0,"Sub-directories:   None"
  666. 17,8,7,0,"Files:             ACCTRPT.TXT"
  667. 18,8,7,0,"                   SALES.DOC"
  668. 19,8,7,0,"Path:  \SPRDSHET"
  669. 20,8,7,0,"Sub-directories:   None"
  670. 21,8,7,0,"Files:             CALC.EXE"
  671. 22,8,7,0,"                   PREDICT.CAL"
  672. 23,8,7,0,"                   SALES.CAL"
  673. SPACE,0,7
  674. CLS,1,25,4,2
  675. BOX,1,1,25,80,1,13,2
  676. 3,0,5,2,"█████  █   █  █   █  ████   █████  █   █       █   █████"
  677. 4,0,5,2,"█      █   █  █  █   █   █  █      █  █       █    █    "
  678. 5,0,5,2,"█      █████  ███    █   █  █████  ███       █     ████ "
  679. 6,0,5,2,"█      █   █  █  █   █   █      █  █  █     █      █    "
  680. 7,0,5,2,"█████  █   █  █   █  ████   █████  █   █   █       █    "
  681. 9,8,0,2,"CHKDSK is a hard disk error-finding program.  As with any electro-"
  682. 10,8,0,2,"mechanical device, errors can occur.  Usually these errors are not"
  683. 11,8,0,2,"damaging to data... they just cause some empty room on your hard"
  684. 12,8,0,2,"disk to be ~lost~.  CHKDSK/F will reclaim those lost areas."
  685. 12,28,15,2,"CHKDSK/F"
  686. SPACE,2,0
  687. 14,8,1,2,"This program should be run daily if possible.  It is mainly a"
  688. 15,8,1,2,"good way to make sure your hard disk is working properly.  If you"
  689. 16,8,1,2,"find several days in a row when the computer reports errors, then"
  690. 17,8,1,2,"it's probably time to have your system checked out by a technician."
  691. SPACE,2,1
  692. 19,8,0,2,"If CHKDSK finds errors, it will correct them and create temporary"
  693. 20,8,0,2,"files called FILE0000.CHK, FILE0001.CHK, FILE0002.CHK, etc.  You may"
  694. 21,8,0,2,"either view these files by means of the TYPE command, or you may"
  695. 22,8,0,2,"delete them (DEL FILE000?.CHK)."
  696. SPACE,2,0
  697. CLS,1,25,4,3
  698. BOX,1,1,25,80,1,13,3
  699. 3,8,0,3,"Go ahead and try it:"
  700. 5,8,0,3,"C>"
  701. INPUT,2,5,10,ANY
  702. IF,2,NOT,CHKDSK/F,5,40,1,3,"TRY: CHKDSK/F"
  703. IF,2,NOT,CHKDSK/F,INPUT,2,5,10,EXACT,CHKDSK/F
  704. 6,8,0,3, "Volume COMPUTOR created Nov 15, 1980 8:28p"
  705. 8,8,0,3, "32598016 bytes total disk space          <────────────────────┐"
  706. 9,8,0,3, "   38912 bytes in 3 hidden files                              │"
  707. 10,8,0,3,"  129024 bytes in 49 directories                              │"
  708. 11,8,0,3,"31504384 bytes in 2001 user files                             │"
  709. 12,8,0,3,"  915696 bytes available on disk                              │"
  710. 13,8,0,3,"                                                              │"
  711. 14,8,0,3,"  655360 bytes total memory                                   │"
  712. 15,8,0,3,"  403680 bytes free                                           │"
  713. 16,8,0,3,"                                                              │"
  714. 17,8,0,3,"                                                              │"
  715. 18,8,1,3,"This indicates we have a 30 megabyte hard disk          ──────┘"
  716. SPACE,3,1
  717. 8,49,0,3,"                        "
  718. 9,49,0,3,"<────────────────────┐"
  719. 18,8,1,3,"This shows there are 3 files on the disk we cannot see  ──────┘"
  720. SPACE,3,1
  721. 9,49,0,3,"                        "
  722. 10,49,0,3,"<────────────────────┐"
  723. 18,8,1,3,"We have 49 directories and subdirectories on this disk  ──────┘"
  724. SPACE,3,1
  725. 10,49,0,3,"                        "
  726. 11,49,0,3,"<────────────────────┐"
  727. 18,8,1,3,"There are 2001 files (not including the hidden ones)    ──────┘"
  728. SPACE,3,1
  729. 11,49,0,3,"                        "
  730. 12,49,0,3,"<────────────────────┐"
  731. 18,8,1,3,"This shows how much space is left free on the disk      ──────┘"
  732. SPACE,3,1
  733. 12,49,0,3,"                        "
  734. 13,49,0,3,"                        "
  735. 14,49,0,3,"<────────────────────┐"
  736. 18,8,1,3,"We have 640K of RAM on this system!                     ──────┘"
  737. SPACE,3,1
  738. 14,49,0,3,"                        "
  739. 15,49,0,3,"<────────────────────┐"
  740. 18,8,1,3,"And about 400K of that RAM is currently available.      ──────┘"
  741. SPACE,3,1
  742. 20,8,0,3,"Anything else that appears besides this information is most likely"
  743. 21,8,0,3,"to be an error message.  Write it down on a sheet of paper along"
  744. 22,8,0,3,"with the date and time and keep it for future reference."
  745. SPACE,3,0
  746. CLS,1,25,1,7
  747. BOX,1,1,25,80,1,13,7
  748. 3,0,4,7,"█   █  █████  █   █  █████"
  749. 4,0,4,7,"██  █  █       █ █     █  "
  750. 5,0,4,7,"█ █ █  ████     █      █  "
  751. 6,0,4,7,"█  ██  █       █ █     █  "
  752. 7,0,4,7,"█   █  █████  █   █    █  "
  753. 10,8,1,7,"This section has shown you several DOS hard disk commands.  How is"
  754. 11,8,1,7,"your brain doing? (a little fuzzy, maybe?)  Brace yourself..."
  755. 12,8,1,7,"coming up is the ADVANCED DOS section.  You're going to love it."
  756. 13,8,1,7,"(if you manage to survive the strain).  Press SPACE to"
  757. 14,8,1,7,"continue on, or ESC to stop the session here."
  758. SPACE,7,1
  759. PROG,CT6.DAT
  760.